5. Money Management
Zyra Guardian Pro provides a flexible money management system that lets you control how much capital the EA uses and how lot sizes are calculated. This section explains how to allocate capital, choose between fixed or dynamic lots, and scale the system across multiple EAs safely.
1. Capital Allocation
- Capital Allocation %: Lets you assign only a portion of your account's total equity to Zyra Guardian Pro. Example: if set to 50%, Zyra will ignore half of your balance when calculating lots and applying risk.
- Allocation Split: Use this if you run multiple EAs with the same capital allocation. For instance, with
Capital_AllocationSplit = 2, two EAs will each use 50% of the allocated capital segment.
Weekly/Monthly rebalance example:
- At the hour set in RebalanceHour, the allocation is recalculated on the current balance according to Capital Allocation %.
- The resulting slice is divided by Allocation Split for each instance.
- Daily and weekly counters reset so the new session does not inherit previous history.
- Useful to restart multiple instances automatically after a loss without manually adjusting the allocated capital.
2. Lot Calculation Modes
- AutoLot Mode: Zyra calculates lot size dynamically based on equity. You define how much capital is needed for a 0.01 lot (e.g. $1000).
- Fixed Lot Mode: You define a constant lot size for all trades (e.g. 0.01, 0.10, 1.00). Use this if you prefer full control.
Example:
- Account Equity: $10,000
- Capital Allocation: 50%
- Split: 1
- Effective Capital = $5,000
- If
BaseLotPer1000 = 1000→ Zyra opens 0.05 lot (5 x 0.01)
3. Lot Scaling in the Grid
- Lot Multiplier: Defines how lot sizes evolve in the grid. Example: if set to 2, each new trade in the sequence will be twice the size of the previous one.
- This is essential to control recovery strength and risk exposure.
- Set it to 1 for equal-size positions (no scaling).
4. Tips for Safe Money Management
- Do not allocate 100% of your capital unless you understand the risks of grid trading.
- Use AutoLot mode when you want the EA to scale with account size, especially useful on funded accounts.
- Always test settings on a demo account before going live.
- Combine this with Protection Settings to define global stop loss or equity guards.
5. Configurable Daily Limits
Zyra Guardian Pro's daily circuit breaker relies on several parameters to frame each day's losses and gains.
All thresholds are recalculated on every OnTick so the EA reacts instantly to any change in account conditions.
- Maximum realised daily loss allowed: Maximum percentage loss tolerated for the day. When cumulative floating loss crosses this limit, new entries are blocked and, if closing is enabled, every open position is liquidated.
- Daily profit target: Profit percentage that secures the day. Once reached, the algorithm can pause additional trades to protect the gains.
-
Calculation mode for the daily PnL: Chooses whether thresholds are calculated from balance (realized capital) or equity (realized + floating).
The
Balancemode delays suspension until losses are booked, whileEquityanticipates drawdowns. - Close all positions when the daily limit is reached: When enabled, the EA immediately closes all running trades as soon as a daily limit is breached. Otherwise, it simply prevents any new orders from being opened.
Example inspired by the OnTick flow: starting from an initial equity of $10,000, the parameters are set to
Maximum realised daily loss allowed = 3, Daily profit target = 4, Calculation mode for the daily PnL = Equity, and Close all positions when the daily limit is reached = true.
After several winning trades, equity rises to $10,400: the robot locks the session, stops new entries, and keeps the profit safe.
Later, a losing streak brings equity down to $9,700 (−3%). On the tick that crosses this threshold, Zyra immediately closes every open position,
records the suspended state, and prevents any restart until the next trading day.
6. Weekly Limits
Beyond the daily circuit breaker, Zyra Guardian Pro tracks cumulative performance at the weekly scale. Four inputs let you set the tolerance for the week and choose how the EA reacts once the boundaries are crossed.
- Maximum realised weekly loss allowed: maximum loss accepted for the week, expressed as a percentage of the allocated capital. When the floating or realized drawdown goes beyond this threshold, the EA activates the weekly suspension flag.
- Weekly profit target: weekly profit objective. Reaching it can freeze new trades so the account keeps the gains heading into the weekend.
- Calculation mode for the weekly PnL: decides whether limits are computed from Balance (realized capital) or Equity (realized + floating), mirroring the behavior of the daily limits. Equity mode reacts faster to open losses, while Balance waits for booked results.
- Close all positions when the weekly limit is reached: when enabled, the weekly circuit breaker also forces the closure of every open position the moment the limit is tripped.
Example: account equity of $10,000 with Maximum realised weekly loss allowed = 6, Calculation mode for the weekly PnL = Balance, and Close all positions when the weekly limit is reached = false. As long as realized losses stay within −$600, Zyra keeps managing existing trades. If losses extend to −$650, the EA enters weekly suspension and blocks new orders until the next reset (typically on Monday). Turning Close all positions when the weekly limit is reached = true in the same scenario would also liquidate the running basket before suspending trading.
Weekly limits complement daily limits: the daily guard is a quick circuit breaker for a single session, while the weekly guard protects the overall trajectory of the week. Both systems rely on the same suspension logic (Action to apply when exiting a user-defined session) described in the Protection page.
Next Step
Go to the Protection page to secure your strategy with floating stop-loss, equity limits, and smart profit locks.
Zyra Guardian Pro